
var menu = (function(){
	return {
		createMenu: function(gui){
			var menu = new gui.Menu({ type: 'menubar' });

			var linkMenu = new gui.Menu();
			linkMenu.append(new gui.MenuItem({label:'创建链接', click: servers.createServer}));
            
            menu.append(new gui.MenuItem({label:'链接', submenu:linkMenu}));

            if(process.platform == 'darwin'){
            	menu.createMacBuiltin("Packager");
            }
			gui.Window.get().menu = menu;
		}
	};
})();

